package cn.senwill.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

@Data
@ToString
@TableName("t_order")
public class Order {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 订单ID
    @TableField("user_id")
    private Long userId; // 用户ID
    @TableField("product_id")
    private Long productId; // 商品ID
    private int count; // 下单数量
    private BigDecimal money; // 下单金额
    private int status; // 支付状态
}